import request from '@/utils/request'

// 查询音乐情绪列表
export function listMoods(query) {
  return request({
    url: '/site/moods/list',
    method: 'get',
    params: query
  })
}

// 查询音乐情绪详细
export function getMoods(moodId) {
  return request({
    url: '/site/moods/' + moodId,
    method: 'get'
  })
}

// 新增音乐情绪
export function addMoods(data) {
  return request({
    url: '/site/moods',
    method: 'post',
    data: data
  })
}

// 修改音乐情绪
export function updateMoods(data) {
  return request({
    url: '/site/moods',
    method: 'put',
    data: data
  })
}

// 删除音乐情绪
export function delMoods(moodId) {
  return request({
    url: '/site/moods/' + moodId,
    method: 'delete'
  })
}
